<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="show-info">
	<div class="midtab">
		<a data-target="cg_thisMonth" onclick="thisMonth();" data-sign="this" class="cg_thisMonth current cur " href="javascript:void(0)" >本月月报</a><img src="${ctxPath }/images/icon/import.png" class="inited">&nbsp;&nbsp;&nbsp;
		<a data-target="cg_nextMonth" onclick="nextMonth();" data-sign="next" class="cg_nextMonth" href="javascript:void(0)" >下月计划</a>&nbsp;&nbsp;
	</div>
    <table class="tab-show this-table">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
        <tr>
	    	<th>
            	<label>标题：</label>
        	</th>
         	<td colspan="3">${model.title }</td>
		</tr>
        <tr>
	    	<th>
            	<label>开始日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.startDate }" pattern="yyyy-MM-dd"/></td>
         	<th>
            	<label>结束日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.endDate }" pattern="yyyy-MM-dd"/></td>
		</tr>
        <tr>
	    	<th>
            	<label>本月月报内容：</label>
        	</th>
         	<td colspan="3">${model.content }</td>
		</tr>
        <tr>
	    	<th>
            	<label>总工时：</label>
        	</th>
         	<td colspan="3">${not empty model.totalHours ? model.totalHours : '0'}小时</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建人姓名：</label>
        	</th>
         	<td>${model.createName }</td>
         	<th>
            	<label>修改人姓名：</label>
        	</th>
         	<td>${model.updateName }</td>
		</tr>
        <tr>
	    	<th>
            	<label>创建日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
         	<th>
            	<label>修改日期：</label>
        	</th>
         	<td><fmt:formatDate value="${model.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
    </table>
	<div class="opt"></div>
	<table class="tab-show next-table" style="display: none;">
		<colgroup>
			<col width="20%">
			<col width="">
		</colgroup>
		<tr>
			<th>
				<label>下月计划标题：</label>
			</th>
			<td colspan="3">${model.nextMonthTitle }</td>
		</tr>
		<tr>
			<th>
				<label>下月计划开始日期：</label>
			</th>
			<td><fmt:formatDate value="${model.nextMonthStartDate }" pattern="yyyy-MM-dd"/></td>
			<th>
				<label>下月计划结束日期：</label>
			</th>
			<td><fmt:formatDate value="${model.nextMonthEndDate }" pattern="yyyy-MM-dd"/></td>
		</tr>
		<tr>
			<th>
				<label>下月计划内容：</label>
			</th>
			<td colspan="3">${model.nextMonthContent }</td>
		</tr>
		<tr>
			<th>
				<label>下月计划总工时：</label>
			</th>
			<td colspan="3">${not empty model.nextMonthTotalHours ? model.nextMonthTotalHours : '0'}小时</td>
		</tr>
		<tr>
			<th>
				<label>创建人姓名：</label>
			</th>
			<td>${model.createName }</td>
			<th>
				<label>修改人姓名：</label>
			</th>
			<td>${model.updateName }</td>
		</tr>
		<tr>
			<th>
				<label>创建日期：</label>
			</th>
			<td><fmt:formatDate value="${model.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			<th>
				<label>修改日期：</label>
			</th>
			<td><fmt:formatDate value="${model.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
	</table>
</div>
<script>
	function thisMonth(){
		$(".cg_thisMonth").attr("class","cg_thisMonth current cur ");
		$(".cg_nextMonth").attr("class","cg_nextMonth");
		$(".this-table").show();
		$(".next-table").hide();
	}
	function nextMonth(){
		$(".cg_nextMonth").attr("class","cg_nextMonth current cur ");
		$(".cg_thisMonth").attr("class","cg_thisMonth");
		$(".this-table").hide();
		$(".next-table").show();
	}
</script>